package com.yatube.nhx.api.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Created with IDEA
 * @description --
 * @date 2024-04-22 17:19
 */
@Configuration
public class Swagger3Config {

    @Bean
    public OpenAPI openAPI(){
        String title = "网站API文档";
        String desc = "描述微服务接口定义";
        String ver = "1.0";
        return new OpenAPI().info(new Info()
                .title(title)
                .description(desc)
                .version(ver));
    }
}
